package com.kaili.basic.mapper;

import com.kaili.basic.pojo.dto.MdmDevicdCommandQueryDto;
import com.kaili.basic.pojo.entity.MdmDeviceCommand;
import com.kaili.basic.pojo.vo.MdmDeviceCommandVo;
import com.kaili.basic.pojo.vo.MdmDeviceOnlineVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description:
 * @Author: shenliqiang
 * @CreateDate: 2019/7/26 8:47
 * @Version: 1.0
 */
@Mapper
public interface DeviceCommandMapper {

    /**
    * @Desc:  新增命令
    * @author: shenliqiang
    * @Time: 2019/7/26 8:56
    * @param mdmDeviceCommand
    * @return int
    */

    int addMdmDeviceCommand(MdmDeviceCommand mdmDeviceCommand);

    /**
    * @Desc:  修改状态
    * @author: shenliqiang
    * @Time: 2019/7/26 8:55
    * @param mdmDeviceCommand
    * @return int
    */

    int updateMdmDeviceCommandStatus(MdmDeviceCommand mdmDeviceCommand);

    /**
    * @Desc:  获取某设备的所有未执行命令
    * @author: shenliqiang
    * @Time: 2019/7/26 8:56
    * @param dto
    * @return java.util.List<com.kaili.basic.pojo.vo.MdmDeviceOnlineVo>
    */

    MdmDeviceCommandVo queryMdmDeviceCommand(MdmDevicdCommandQueryDto dto);

}
